package com.lagou.sqlSession;

import com.lagou.pojo.Configuration;
import com.lagou.pojo.MappedStatement;

import java.sql.SQLException;
import java.util.List;

/**
 * @author: lcz
 * @date: Created in 13:20 2020/9/26
 * @description:
 */
public interface Executor {
    <E> List<E> query(Configuration configuration, MappedStatement statement, Object... params) throws Exception;

    int executeUpdate(Configuration configuration, MappedStatement statement, Object... params) throws Exception;

    void close() throws SQLException;
}
